<template>
  <div id="middlee">
    <div class="toubu">
      <a>&nbsp;&nbsp;举报内容</a>
      <a>（请至少填写一下）</a>
    </div>
    <van-loading size="24px" v-show="loading" v-if="loading"
      >加载中...</van-loading
    >
    <div class="dibu" v-for="item in zhapian2" :key="item.id" v-else>
      <div class="zhapianleixin">
        <div class="left">
          <b>{{ item.name }}</b>
        </div>
        <div class="left">{{ item.path }}&nbsp;&nbsp;{{ item.name2 }}</div>
      </div>
      <!-- <div class="zhapianleixin">
        <div class="left"><b>&nbsp;&nbsp;诈骗信息</b></div>
        <div class="left">请选择&nbsp;&nbsp;&gt;</div>
      </div>
      <div class="zhapianleixin">
        <div class="left"><b>&nbsp;&nbsp;App应用程序</b></div>
        <div class="left">请选择&nbsp;&nbsp;&gt;</div>
      </div>


      <div class="zhapianleixin">
        <div class="left"><b>&nbsp;&nbsp;图片</b></div>
        <div class="left">请选择&nbsp;&nbsp;&gt;</div>
      </div>
      <div class="zhapianleixin">
        <div class="left"><b>&nbsp;&nbsp;诈骗网址</b></div>
        <div class="left">请选择&nbsp;&nbsp;&gt;</div>
      </div>
      <div class="zhapianleixin">
        <div class="left"><b>&nbsp;&nbsp;诈骗社交账号</b></div>
        <div class="left">请选择&nbsp;&nbsp;&gt;</div>
      </div>
      <div class="zhapianleixin">
        <div class="left"><b>&nbsp;&nbsp;诈骗交易账户</b></div>
        <div class="left">请选择&nbsp;&nbsp;&gt;</div>
      </div> -->
    </div>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      zhapian2: [],
      loading: false,
    };
  },
  created() {
    this.getzhapian2();
  },
  methods: {
    getzhapian2() {
      this.loading = true;
      axios({
        url: "http://localhost:3000/zhapian2",
      }).then((res) => {
        // 把后端的数据赋给了Laidian
        // console.log(res.data);
        this.zhapian2 = res.data;
        console.log(this.zhapian2, "zhapian2");
        setTimeout(() => {
          this.loading = false;
        }, 2000);
      });
    },
  },
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
#middlee {
  width: 100%;
  height: 25.2rem;
  display: flex;
  flex-direction: column;
}

#middlee .toubu {
  height: 20rem;
  background-color: rgb(228, 224, 224);
  display: flex;
  align-items: center;
}
#middlee .toubu a:nth-child(2) {
  color: rgb(119, 114, 114);
}
#middlee .dibu {
  height: 22.2rem;
  display: flex;
  flex-direction: column;
}
#middlee .dibu .zhapianleixin {
  height: 3.1rem;
  border-bottom: 1px solid rgb(179, 174, 174);
  display: flex;

  justify-content: space-between;
}
#middlee .dibu .zhapianleixin .left {
  width: 30%;

  height: 3.1rem;
  display: flex;

  justify-content: center;
}
#middlee .dibu .zhapianleixin .left:nth-child(1) {
  height: 3.1rem;
  display: flex;
}
#middlee .dibu .zhapianleixin .left:nth-child(2) {
  color: rgb(119, 114, 114);
  margin-right: 15px;
  display: flex;
  align-items: flex-end;
}
</style>
